<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
	<ul class="sidebar-menu  topUl" id="menu-${param.parentId}">
		<li class="header"></li>
		<li class="active treeview">
          <a >
            <i class="fa fa-dashboard"></i> <span>首页</span>
            <span class="pull-right-container">
            </span>
          </a>
        </li>
		<c:set var="menuList" value="${fns:getMenuList()}"/>
		<c:set var="firstMenu" value="true"/>
		<c:forEach items="${menuList}" var="menu" varStatus="idxStatus">
			<c:if test="${menu.parent.id eq (not empty param.parentId ? param.parentId:1)&&menu.isShow eq '1'}"><%--onclick="setActive(this,event)" --%>
				<li class="treeview ">
					<a class="accordion-toggle" data-toggle="collapse" data-parent="#menu-${param.parentId}" data-href="#collapse-${menu.id}" href="#collapse-${menu.id}" title="${menu.remarks}"  >
						
						<%-- <i class="icon-chevron-${not empty firstMenu && firstMenu ? 'down' : 'right'}"></i> --%>
						<i class="fa fa-dashboard"></i>
						<span>${menu.name}</span>
						<span class="pull-right-container">
			              <i class="fa fa-angle-left pull-right"></i>
			            </span>
					</a>
					<ul class="treeview-menu collapse-${menu.id}"  ><%-- id="collapse-${menu.id}"  --%>
						<c:forEach items="${menuList}" var="menu2">
							<c:if test="${menu2.parent.id eq menu.id&&menu2.isShow eq '1'}">
								
								<li >
									<a href="${fn:indexOf(menu2.href, '://') eq -1 ? ctx : ''}${not empty menu2.href ? menu2.href : '/404'}" target="${not empty menu2.target ? menu2.target : 'mainFrame'}" onclick="isGoLogin()" >
											<%-- <i class="fa icon-${not empty menu2.icon ? menu2.icon : 'fa-circle-o'}"></i> --%>
											<i class="fa fa-circle-o text-aqua"></i>
											<!-- <i class="fa fa-circle-o"></i> Level Two -->
											${menu2.name}
											
						                   <!--  <span class="pull-right-container">
						                      	<i class="fa fa-angle-left pull-right"></i>
						                    </span> -->
					                  </a>
					                  
					                  <ul  class="treeview-menu leaveThree menu3-${menu2.id}">
						                  	<c:forEach items="${menuList}" var="menu3">
													<c:if test="${menu3.parent.id eq menu2.id&&menu3.isShow eq '1'}">
														<li >
															<a href="${fn:indexOf(menu3.href, '://') eq -1 ? ctx : ''}${not empty menu3.href ? menu3.href : '/404'}" target="${not empty menu3.target ? menu3.target : 'mainFrame'}" onclick="isGoLogin()">
																<i class="fa fa-circle-o"></i>
																${menu3.name}
															</a>
														</li>
													</c:if>
											</c:forEach>
					                  </ul>
								</li>
							</c:if>
						</c:forEach>
					</ul>
				</li>
			</c:if>
		</c:forEach>
	</ul>

	<%-- <div class="accordion" id="menu-${param.parentId}">
		<c:set var="menuList" value="${fns:getMenuList()}"/><c:set var="firstMenu" value="true"/>
		<c:forEach items="${menuList}" var="menu" varStatus="idxStatus">
		<c:if test="${menu.parent.id eq (not empty param.parentId ? param.parentId:1)&&menu.isShow eq '1'}">
		<div class="accordion-group">
		    <div class="accordion-heading">
		    	<a class="accordion-toggle" data-toggle="collapse" data-parent="#menu-${param.parentId}" data-href="#collapse-${menu.id}" href="#collapse-${menu.id}" title="${menu.remarks}"><i class="icon-chevron-${not empty firstMenu && firstMenu ? 'down' : 'right'}"></i>&nbsp;${menu.name}</a>
		    </div>
		    <div id="collapse-${menu.id}" class="accordion-body collapse ${not empty firstMenu && firstMenu ? 'in' : ''}">
				<div class="accordion-inner">
					<ul class="nav nav-list">
						<c:forEach items="${menuList}" var="menu2">
							<c:if test="${menu2.parent.id eq menu.id&&menu2.isShow eq '1'}">
							<li>
								<a data-href=".menu3-${menu2.id}" href="${fn:indexOf(menu2.href, '://') eq -1 ? ctx : ''}${not empty menu2.href ? menu2.href : '/404'}" target="${not empty menu2.target ? menu2.target : 'mainFrame'}" >
									<i class="icon-${not empty menu2.icon ? menu2.icon : 'circle-arrow-right'}"></i>&nbsp;${menu2.name}
								</a>
								<ul class="nav nav-list hide" style="margin:0;padding-right:0;">
										<c:forEach items="${menuList}" var="menu3">
											<c:if test="${menu3.parent.id eq menu2.id&&menu3.isShow eq '1'}">
												<li class="menu3-${menu2.id} hide">
													<a href="${fn:indexOf(menu3.href, '://') eq -1 ? ctx : ''}${not empty menu3.href ? menu3.href : '/404'}" target="${not empty menu3.target ? menu3.target : 'mainFrame'}" >
														<i class="icon-${not empty menu3.icon ? menu3.icon : 'circle-arrow-right'}"></i>
														&nbsp;${menu3.name}
													</a>
												</li>
											</c:if>
										</c:forEach>
									</ul>
								</li>
							<c:set var="firstMenu" value="false"/></c:if>
						</c:forEach>
					</ul>
				</div>
		    </div>
		</div>
	</c:if></c:forEach></div> --%><%--
</body>
</html> --%>